package com.example.hotfix;

import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.view.View;

public class splash extends Application {
    private static final String PREFS_NAME = "MyPrefs";
    private static final String FIX_KEY = "FIX";
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        SharedPreferences sp = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);
        if (sp.getBoolean(FIX_KEY,false)){
            new MainActivity().checkFix(base);
        }

    }
}
